package com.ruoyi.play.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 活动发布对象 post_play
 *
 * @author ruoyi
 * @date 2025-05-13
 */
public class PostPlay extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 创建用户id--owner
     */
    private Long ownerId;
    /**
     * 活动类型
     */
    @Excel(name = "活动类型")
    private String type;

    /**
     * 活动时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "活动时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    /**
     * 活动地点
     */
    @Excel(name = "活动地点")
    private String place;

    /**
     * 性别要求
     */
    @Excel(name = "性别要求")
    private String sex;

    /**
     * 人数要求
     */
    @Excel(name = "人数要求")
    private Long number;
    /**
     * 已参加人数
     */
    private Long joinNumber;
    /**
     * 图片
     */
    private String img;

    /**
     * 更多要求
     */
    @Excel(name = "更多要求")
    private String more;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public Long getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Long ownerId) {
        this.ownerId = ownerId;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Long getJoinNumber() {
        return joinNumber;
    }

    public void setJoinNumber(Long joinNumber) {
        this.joinNumber = joinNumber;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Date getTime() {
        return time;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getPlace() {
        return place;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getSex() {
        return sex;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public Long getNumber() {
        return number;
    }

    public void setMore(String more) {
        this.more = more;
    }

    public String getMore() {
        return more;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId()).append("ownerId", getOwnerId())
                .append("type", getType())
                .append("time", getTime())
                .append("place", getPlace())
                .append("sex", getSex())
                .append("number", getNumber())
                .append("more", getMore())
                .toString();
    }
}
